<table border="1" cellpadding="3" cellspacing="0" bordercolor="#000000" style="border-collapse: collapse; table-layout:fixed;word-wrap:break-word;" width="100%" class="table_common">
    <tr>
        <th rowspan="2">区域</th>
        <th rowspan="2">大区</th>
        <th rowspan="2">小区</th>
        <th rowspan="2">省份</th>
        <th rowspan="2">城市</th>
        <th rowspan="2">专营店</th>
        <th rowspan="2">专营店编码</th>
        <th rowspan="2">所属双月</th>
        <?php foreach($actionList as $v){?>
        <th colspan="3"><?=$v?></th>
        <?php }?>
    </tr>
    <tr>
        <?php foreach($actionList as $v){?>
        <th><?=$v?>执行次数</th>
        <th><?=$v?>项目结算申请总费用</th>
        <th><?=$v?>项目结算审核总费用</th>
        <?php }?>
    </tr>
    <?php
    foreach($procList as $k => $v){
        $storeData = isset($allStoreList[$v['storeId']]) ? $allStoreList[$v['storeId']] : array();
        $detailMoney = isset($actionDetailList[$v['id']]) ? $actionDetailList[$v['id']] : array();
        if (!$detailMoney) {
            continue;
        }
    ?>
    <tr>
        <td><?=$storeData['area'];?></td>
        <td><?=$storeData['region'];?></td>
        <td><?=$storeData['spsarea'];?></td>
        <td><?=$storeData['province'];?></td>
        <td><?=$storeData['city'];?></td>
        <td><?=$storeData['storeName'];?></td>
        <td><?=$storeData['coding'];?></td>
        <td><?=$v['timeUnitStr'];?></td>
        <?php
        foreach($actionList as $actionK => $actionV){
        ?>
        <td><?=isset($detailMoney[$actionK]['num']) ? (int)$detailMoney[$actionK]['num'] : 0;?></td>
        <td><?=isset($detailMoney[$actionK]['settleApply']) ? (float)$detailMoney[$actionK]['settleApply'] : 0;?></td>
        <td><?=isset($detailMoney[$actionK]['settleAudit']) ? (float)$detailMoney[$actionK]['settleAudit'] : 0;?></td>
        <?php }?>
    </tr>
    <?php }?>
</table>